function getCookie(name){
	var c = document.cookie;
	var c_arr = c.split(';');
	var v = '';
	for(var i=0;i<c_arr.length;i++){
		var item = c_arr[i].replace(/\s+/ig,'').split('=');
		if(name == item[0]){
			v = item[1];
		}
	}
	return v;
}